package com.mrjoew.weekend.entities.po;

import com.mrjoew.weekend.entities.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Christopher Jones
 * @ClassName ContentArticlePO
 * @explain
 * @date 2020/6/20 0020 12:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SQLDelete(sql = "UPDATE `content_article` SET deleted = 1 WHERE id = ?")
@Entity
@Table(name = "content_article")
public class ContentArticlePO extends BasePO {

    /**
     * 文章内容
     */
    private String content;

    /**
     * 所属专辑
     */
    private Integer album;
}
